package com.bestescortbedsystem.entity;

import java.io.Serializable;

/**
 * ses_user_ordinary
 * @author 
 */
public class SesUserOrdinary implements Serializable {
    /**
     * ID,主键PK
     */
    private Long ordinaryid;

    /**
     * 用户表ID
     */
    private Long userid;

    /**
     * 用户押金
     */
    private Float ordinarydeposit;

    /**
     * 用户钱包总金额
     */
    private Float ordinarymoney;

    private static final long serialVersionUID = 1L;

    public Long getOrdinaryid() {
        return ordinaryid;
    }

    public void setOrdinaryid(Long ordinaryid) {
        this.ordinaryid = ordinaryid;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public Float getOrdinarydeposit() {
        return ordinarydeposit;
    }

    public void setOrdinarydeposit(Float ordinarydeposit) {
        this.ordinarydeposit = ordinarydeposit;
    }

    public Float getOrdinarymoney() {
        return ordinarymoney;
    }

    public void setOrdinarymoney(Float ordinarymoney) {
        this.ordinarymoney = ordinarymoney;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SesUserOrdinary other = (SesUserOrdinary) that;
        return (this.getOrdinaryid() == null ? other.getOrdinaryid() == null : this.getOrdinaryid().equals(other.getOrdinaryid()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getOrdinarydeposit() == null ? other.getOrdinarydeposit() == null : this.getOrdinarydeposit().equals(other.getOrdinarydeposit()))
            && (this.getOrdinarymoney() == null ? other.getOrdinarymoney() == null : this.getOrdinarymoney().equals(other.getOrdinarymoney()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrdinaryid() == null) ? 0 : getOrdinaryid().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getOrdinarydeposit() == null) ? 0 : getOrdinarydeposit().hashCode());
        result = prime * result + ((getOrdinarymoney() == null) ? 0 : getOrdinarymoney().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ordinaryid=").append(ordinaryid);
        sb.append(", userid=").append(userid);
        sb.append(", ordinarydeposit=").append(ordinarydeposit);
        sb.append(", ordinarymoney=").append(ordinarymoney);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}